package com.video.video.mapper;

import com.video.video.domain.app.dto.AppEchargeRecordDto;
import com.video.video.domain.dto.DEchargeRecordDto;
import com.video.video.domain.vo.EchargeQuery;
import java.util.List;
import com.video.video.domain.DEchargeRecord;

/**
 * 充值记录Mapper接口
 *
 * @author ruoyi
 * @date 2022-09-27
 */
public interface DEchargeRecordMapper
{
    /**
     * 查询充值记录
     *
     * @param id 充值记录主键
     * @return 充值记录
     */
    public DEchargeRecord selectDEchargeRecordById(String id);

    /**
     * app 查询个人充值记录
     * @param userId
     * @return
     */
    public List<DEchargeRecordDto> getEchargeRecordList(String userId);

    /**
     * 查询充值记录列表
     *
     * @param query 充值记录
     * @return 充值记录集合
     */
    public List<DEchargeRecordDto> selectDEchargeRecordList(EchargeQuery query);

    /**
     * 新增充值记录
     *
     * @param dEchargeRecord 充值记录
     * @return 结果
     */
    public int insertDEchargeRecord(DEchargeRecord dEchargeRecord);

    /**
     * 修改充值记录
     *
     * @param dEchargeRecord 充值记录
     * @return 结果
     */
    public int updateDEchargeRecord(DEchargeRecord dEchargeRecord);

    /**
     * 删除充值记录
     *
     * @param id 充值记录主键
     * @return 结果
     */
    public int deleteDEchargeRecordById(String id);

    /**
     * 批量删除充值记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDEchargeRecordByIds(String[] ids);
}
